import request from "@/utils/request"

//列表查询
export const queryPageApi = (params) => request.get('/roles', {params: params})

//添加部门
export const addRoleApi = (data) => request.post('/roles', data)

//根据ID查询
export const queryInfoApi = (id) => request.get(`/roles/${id}`)

//修改部门
export const updateApi = (data) => request.put('/roles', data)


//删除部门
export const deleteApi = (id) => request.delete(`/roles/${id}`)